package com.example.literj.kt.internal.functions

import com.example.literj.kt.functions.Consumer

class Functions {
    companion object {
        private val EMPTY_CONSUMER = EmptyConsumer()

        @JvmStatic
        fun <T> emptyConsumer(): Consumer<T> {
            return EMPTY_CONSUMER as Consumer<T>
        }
    }

    internal class EmptyConsumer : Consumer<Any> {
        override fun accept(t: Any) {}
        override fun toString(): String {
            return "EmptyConsumer"
        }
    }
}